package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 信息传递
 * 
 * 信息接收者：员工 片区
 * 
 * @author sinser
 **/
@Entity
@Table(name = "sl_crm_chanceDelivery")
public class ChanceDelivery extends Root {

	/**
	 * 信息接收者类型 1:协助信息 0：本部信息
	 **/
	@Column(name = "nTargetType")
	private int targetType;
	
	/** 信息是否接收 */
	@Column(name = "nIsReceived")
	private int isReceived;

	/** 信息退回原因 */
	@Column(name = "sRejectReason")
	private String rejectReason;

	/** SaleChance_id */
	@ManyToOne
	@JoinColumn(unique = false)
	private Chance saleChance;

	/** SaleArea_id */
	@ManyToOne
	@JoinColumn(unique = false)
	private SaleArea saleArea;

	public String getRejectReason() {
		return rejectReason;
	}

	public void setRejectReason(String rejectReason) {
		this.rejectReason = rejectReason;
	}

	public Chance getSaleChance() {
		return saleChance;
	}

	public void setSaleChance(Chance saleChance) {
		this.saleChance = saleChance;
	}

	public SaleArea getSaleArea() {
		return saleArea;
	}

	public void setSaleArea(SaleArea saleArea) {
		this.saleArea = saleArea;
	}

	public int getTargetType() {
		return targetType;
	}

	public void setTargetType(int targetType) {
		this.targetType = targetType;
	}

	public int getIsReceived() {
		return isReceived;
	}

	public void setIsReceived(int isReceived) {
		this.isReceived = isReceived;
	}

}